//
//  XJSCTopicsFormat.h
//  XinJiangMall
//
//  Created by RaoBo on 2018/6/26.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol XJSCTopicsFormatDelegate <NSObject>
@required
- (void)requestSCTopicsListSuccessWithArray:(NSMutableArray *)dataArray;

- (void)xjscTopicsFormatWillDeleteSelectedTopics:(NSArray *)selectedArr;
//- (void)xjscTopicsFormatHasDeleteAllTopics;

/**需要刷新的时候的回调*/
- (void)xjscTopicsFormatReloadWhenNeed;

@end

@interface XJSCTopicsFormat : NSObject

@property(nonatomic, weak) id <XJSCTopicsFormatDelegate>delegate;

/**收藏的帖子网络请求*/
- (void)requestSCTopicsData;

/**选中、取消选中某个row*/
- (void)selectTopicAtIndexPath:(NSIndexPath *)indexPath isSelected:(BOOL)isSeleted;

/**全选 or 取消全选*/
- (void)selectAllTopicWithStatus:(BOOL)isSelected;

//批量删除商品
- (void)beginToDeleteSeletedTopics;
/**问:这个方法在哪里调用? 答:xjscTopicsFormatWillDeleteSelectedTopics*/
- (void)deleteTopics:(NSArray *)selectedArr;

@end
